// 获取车辆详情相关接口
import instance from '@/utils/request'

// 获取车型详情
export function getEnterpriselist(params) {
  return instance({
    url: '/manager/truck/page',
    method: 'get',
    params
  })
}

// 增加车辆
export function addEnterpriselis(data) {
  return instance({
    url: '/manager/truck',
    method: 'post',
    data: {
      licensePlate: data.licensePlate,
      deviceGpsId: data.deviceGpsId,
      truckTypeId: data.truckTypeId
    }
  })
}

// 获取车辆详情
export function getVehicleDetailsApi(id) {
  return instance({
    url: `/manager/truck/${id}`,
    method: 'get'
  })
}

// 更新车辆信息
export function putVehicleInformation(id) {
  return instance({
    url: `/manager/truck/${id}`,
    method: 'put'
  })
}
